﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UploadImage.aspx.cs" Inherits="Admin_UploadImage" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Upload Image</title>
    <link href="../CSS/AdminStyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    form, html, body
    {
        overflow:hidden;
        background-color:#FFF8C6;
        font: normal 13px "Segoe UI", Arial, Verdana;
        color: black;
    }
    </style>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)  

            return oWindow;
        }
        function CloseWnd() {
            GetRadWindow().close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="wrapper">
        <%--<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />--%>
        <div id="left">
            <fieldset>
                <legend>Upload</legend>
                <telerik:RadUpload
                    ID="RadUpload1"
                    runat="server"
                    BackColor="#FFF8C6"
                    Skin="Hay"
                    InitialFileInputsCount="3"
                    MaxFileInputsCount="5"
                    AllowedFileExtensions=".jpg,.jpeg,.gif,.swf,.flv" />
                <br />
                <%--<telerik:RadProgressArea id="progressArea1" runat="server" Skin="Telerik" />--%>
                <asp:Button id="buttonSubmit" runat="server" CssClass="RadUploadButton" 
                    Text="Submit" style="MARGIN-TOP: 6px" onclick="buttonSubmit_Click" />
            </fieldset>            
        </div>
        <div id="right">
            <asp:RadioButtonList ID="rdTypes" runat="server" RepeatDirection="Vertical" AutoPostBack="true">
                <asp:ListItem Value="Flash">Flash</asp:ListItem>
                <asp:ListItem Value="Banner">Banner</asp:ListItem>
                <asp:ListItem Value="Logo">Logo</asp:ListItem>
                <asp:ListItem Value="Detail" Selected="True">Detail</asp:ListItem>
            </asp:RadioButtonList>
        </div>
        <div style="clear:both">
            <asp:Label ID="lbInfo" runat="server" ForeColor="#595454"></asp:Label>
        </div>
    </div>
    </form>
</body>
</html>